package com.zdx.yswl.ui.bean;

import java.util.ArrayList;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class PanoramaBean extends BaseBean{

	private static final long serialVersionUID = -1739910676041490472L;
	public String id;
	public String name;// 动态
	public String url;// 时间


	public static ArrayList<PanoramaBean> getListBeanFromJSON(JSONArray jsonArr) throws JSONException {
		ArrayList<PanoramaBean> list = new ArrayList<PanoramaBean>();
			int lenth = jsonArr.length();
			if (lenth <= 0) {
				return null;
			}

			for (int i = 0; i < lenth; i++) {
				PanoramaBean bean = new PanoramaBean();
				JSONObject jsonObj = jsonArr.getJSONObject(i);
				bean.id = jsonObj.getString("id");
				bean.name = jsonObj.getString("name");
				bean.url = jsonObj.getString("url");
				list.add(bean);
			}


		return list;
	}
}
